package com.laijiale.dto;

import com.laijiale.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author laijiale
 * @date 2025年01月09日 14:28
 */
 @Schema(name ="举报修改DTO")
 @Data
 public class ReportUpdateDTO implements Serializable, RE {
   @NotNull(message = "主键不能为空")
   @Schema(description = "主键")
   private Long id;
   @Schema(description = "集次表ID，季次表外键")
   private Long fkEpisodeId;
   @Schema(description = "用户表ID，季次表外键")
   private Long fkUserId;
   @Pattern(regexp = CONTENT_RE, message = CONTENT_RE_MSG)
   @Schema(description = "举报内容")
   private String content;
}
